<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
      <title>輸出步資料檔案 | HiAPI-C# 2025 </title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta name="title" content="輸出步資料檔案 | HiAPI-C# 2025 ">
      
      
      <link rel="icon" href="../../../../../img/HiAPI.favicon.ico">
      <link rel="stylesheet" href="../../../../../public/docfx.min.css">
      <link rel="stylesheet" href="../../../../../public/main.css">
      <meta name="docfx:navrel" content="../../../../../toc.html">
      <meta name="docfx:tocrel" content="../../toc.html">
      
      <meta name="docfx:rel" content="../../../../../">
      
      
      
      <meta name="loc:inThisArticle" content="In this article">
      <meta name="loc:searchResultsCount" content="{count} results for &quot;{query}&quot;">
      <meta name="loc:searchNoResults" content="No results for &quot;{query}&quot;">
      <meta name="loc:tocFilter" content="Filter by title">
      <meta name="loc:nextArticle" content="Next">
      <meta name="loc:prevArticle" content="Previous">
      <meta name="loc:themeLight" content="Light">
      <meta name="loc:themeDark" content="Dark">
      <meta name="loc:themeAuto" content="Auto">
      <meta name="loc:changeTheme" content="Change theme">
      <meta name="loc:copy" content="Copy">
      <meta name="loc:downloadPdf" content="Download PDF">

      <script type="module" src="./../../../../../public/docfx.min.js"></script>

      <script>
        const theme = localStorage.getItem('theme') || 'auto'
        document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
      </script>

  </head>

  <body class="tex2jax_ignore" data-layout="" data-yaml-mime="">
    <header class="bg-body border-bottom">
      <nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
        <div class="container-xxl flex-nowrap">
          <a class="navbar-brand" href="../../../../../index.html">
            <img id="logo" class="svg" src="../../../../../img/HiAPI.logo.png" alt="">
            
          </a>
          <button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
            <i class="bi bi-three-dots"></i>
          </button>
          <div class="collapse navbar-collapse" id="navpanel">
            <div id="navbar">
              <form class="search" role="search" id="search">
                <i class="bi bi-search"></i>
                <input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
              </form>
            </div>
          </div>
        </div>
      </nav>
    </header>

    <main class="container-xxl">
      <div class="toc-offcanvas">
        <div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
          <div class="offcanvas-header">
            <h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
            <button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
          </div>
          <div class="offcanvas-body">
            <nav class="toc" id="toc"></nav>
          </div>
        </div>
      </div>

      <div class="content">
        <div class="actionbar">
          <button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
            <i class="bi bi-list"></i>
          </button>

          <nav id="breadcrumb"></nav>
        </div>

        <article data-uid="Cmd-WriteStepFiles">
          <h1 id="輸出步資料檔案">輸出步資料檔案</h1>

<p><a class="xref" href="../../../../../api/Hi.MachiningProcs.RuntimeApi.html#Hi_MachiningProcs_RuntimeApi_WriteStepFiles_">WriteStepFiles</a><small>(API)</small> 輸出步資料檔案。</p>
<div class="NOTE">
<h5>Note</h5>
<p><strong>指令格式</strong></p>
<pre><code class="lang-csharp">WriteStepFiles(&lt;路徑樣板=&quot;Output/[NcName].step.csv&quot;&gt;);
</code></pre>
</div>
<p>&lt;路徑樣板&gt;支援 <a href="../Doc-Task/index.html#FileTemplate">檔案路徑樣板</a>。</p>
<div class="TIP">
<h5>Tip</h5>
<p><strong>指令範例</strong></p>
<pre><code class="lang-csharp">WriteStepFiles(&quot;Output/[NcName].step.csv&quot;);
</code></pre>
</div>
<div class="TIP">
<h5>Tip</h5>
<p><strong>輸出範例</strong></p>
<pre><code class="lang-csv">AccumulatedCraterWear_um,AccumulatedFlankWearDepth_um,AccumulatedFlankWearWidth_um,AccumulatedSpindleEnergyConsumption_kWh,AccumulatedTime,AvgAbsMomentAboutSensorVec3d_Nm.X,AvgAbsMomentAboutSensorVec3d_Nm.Y,AvgAbsMomentAboutSensorVec3d_Nm.Z,AvgAbsMomentXAboutSensorOnSpindleRotationCoordinate_Nm,AvgAbsMomentXAboutToolTipOnSpindleRotationCoordinate_Nm,AvgAbsTorque_Nm,AvgAbsTorqueByMapping_Nm,AvgAbsTorqueErrorRatioWithMapping,AvgForceToToolOnToolRunningCoordinate_N.X,AvgForceToToolOnToolRunningCoordinate_N.Y,AvgForceToToolOnToolRunningCoordinate_N.Z,AvgMomentAboutSensor_Nm,AvgMomentAboutToolTip_Nm,AvgMomentAboutToolTipOnToolRunningCoordinate_Nm.X,AvgMomentAboutToolTipOnToolRunningCoordinate_Nm.Y,AvgMomentAboutToolTipOnToolRunningCoordinate_Nm.Z,AvgMomentAboutToolTipOnWorkpieceGeomCoordinate_Nm.X,AvgMomentAboutToolTipOnWorkpieceGeomCoordinate_Nm.Y,AvgMomentAboutToolTipOnWorkpieceGeomCoordinate_Nm.Z,AvgMomentXyAboutObservationPoint_Nm,AvgMomentXyByMapping_Nm,AvgMomentXyErrorRatioWithMapping,BeginSpindleAngle_deg,ChipMass_mg,ChipTemperature_C,ChipThickness_mm,ChipVolume_mm3,Cl.I,Cl.J,Cl.K,Cl.X,Cl.Y,Cl.Z,CutterBodyTemperature_C,CutterDermisTemperature_C,CuttingDepth_mm,CuttingSpeed_mmds,CuttingWidth_mm,DeltaTipDeflectionOnToolRunningCoordinate_um.X,DeltaTipDeflectionOnToolRunningCoordinate_um.Y,DeltaTipDeflectionOnToolRunningCoordinate_um.Z,FeedPerCycle_mm,FeedPerTooth_mm,Feedrate_mmdmin,FileNo,FilePath,FlagsText,InstantCraterWear_um,IsTouched,LineNo,LineText,MaxAbsForce_N,MaxMomentAboutSensor_Nm,MaxMomentAboutToolTip_Nm,MaxSpindlePowerRatio,MaxSpindleTorqueRatio,MaxTipDeflectionOnToolRunningCoordinate_um.X,MaxTipDeflectionOnToolRunningCoordinate_um.Y,MaxTipDeflectionOnToolRunningCoordinate_um.Z,MC.B,MC.C,MC.X,MC.Y,MC.Z,MoveOnWorkpieceCoordinate.X,MoveOnWorkpieceCoordinate.Y,MoveOnWorkpieceCoordinate.Z,MovingLength_mm,Mrr_mm3ds,ReCutDepth_um,Side-Ra,SideCusp_um,SpindleCyclePeriod_s,SpindleInputPower_W,SpindleOutputPower_W,SpindleSpeed_rpm,StepDuration,ThermalCrackRatio,ThermalStress_MPa,ToolId,ToothArcDuration_s,WorkpieceDermisTemperature_C,WorkpiecePlasticDepth_um,YieldingStressRatio
0,0,0,0,&quot;00:00:00&quot;,0,0,0,0,0,0,null,null,0,0,0,0,0,0,0,0,0,0,0,0,null,null,0,0,&quot;NaN&quot;,null,0,0,0,1,-37.400000000000006,97.4,63.44,25,25,0,0,0,0,0,0,&quot;Infinity&quot;,&quot;Infinity&quot;,20000,1,&quot;NC-hs/hs.nc&quot;,&quot;G54 G01 G17 G40 G49 G69 G80 G91 G94 M06 SpindleStop&quot;,0,0,4,&quot;T01 M06&quot;,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,&quot;Infinity&quot;,0,0,0,&quot;00:00:00&quot;,0,0,1,&quot;Infinity&quot;,25,0,0
0,0,0,0,&quot;00:00:00.0300000&quot;,0,0,0,0,0,0,null,null,0,0,0,0,0,0,0,0,0,0,0,0,null,null,171.9,0,&quot;NaN&quot;,null,0,0,0,1,-37.400000000000006,97.4,73.44,25,25,0,63.666666666666664,0,0,0,0,20.942408376963353,5.235602094240838,20000,1,&quot;NC-hs/hs.nc&quot;,&quot;G54 G01 G17 G40 G43 G69 G80 G91 G94 SpindleCw H1&quot;,0,0,7,&quot;G43 Z10. H01&quot;,0,0,0,0,0,0,0,0,0,0,0,0,10,0,0,10,10,0,0,0,0,0.06282722513089005,0,0,955,&quot;00:00:00.0300000&quot;,0,0,1,0.015706806282722512,25,0,0
...
</code></pre>
</div>
<p><code>Cl.X</code>、<code>Cl.Y</code>、<code>Cl.Z</code>、<code>Cl.I</code>、<code>Cl.J</code>、<code>Cl.K</code> 為刀尖點座標(Cutter Location)及刀軸向量。</p>
<p><code>MC.X</code>、<code>MC.Y</code>、<code>MC.Z</code>、<code>MC.A</code>、<code>MC.B</code>、<code>MC.C</code> 為機械座標(Machine Coordinate)。</p>
<p>座標系說明見<a href="../../theory-and-technique/milling-physics-coordinates.html">銑削物理座標系</a>。</p>

</article>

        <div class="contribution d-print-none">
        </div>

        <div class="next-article d-print-none border-top" id="nextArticle"></div>

      </div>

      <div class="affix">
        <nav id="affix"></nav>
      </div>
    </main>

    <div class="container-xxl search-results" id="search-results"></div>

    <footer class="border-top text-secondary">
      <div class="container-xxl">
        <div class="flex-fill">
          <span> Copyright © 2025 <a href='https://superhightech.com.tw'>Tech Coordinate</a>. All rights reserved. <a href='https://superhightech.com.tw'>超級高科技股份有限公司</a> © 2025 版權所有 </span>
        </div>
      </div>
    </footer>
  </body>
</html>
